#!/bin/bash
[ $# -lt 1 ] && echo "file required" && exit 1
curl -s -F files[]=@"$@" https://cockfile.com/upload.php | jq -r '.files | .[] | .url' | tee >( head -n 1 | xclip -sel clip )
